package shop.common.core;

public class LoginContext {
    private static final ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static String getUserId() {
        return threadLocal.get();
    }

    public static void setUserId(String id) {
        threadLocal.set(id);
    }

    public static void removeUserId() {
        threadLocal.remove();
    }
}
